﻿@model IEnumerable<DFYE.Web.Models.studentDaily>

@{
    ViewBag.Title = "Replay";
}

<h2>Replay</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            title
        </th>
        <th>
            able
        </th>
        <th>
            content
        </th>
        <th>
            createDate
        </th>
        <th>
            studentID
        </th>
        <th>
            studentDailyTypeID
        </th>
        <th>
            teacherID
        </th>
        <th>
            tearcherName
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.title)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.able)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.content)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.createDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.studentID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.studentDailyTypeID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.teacherID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.tearcherName)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.ID }) |
            @Html.ActionLink("Details", "Details", new { id=item.ID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.ID })
        </td>
    </tr>
}

</table>
